﻿package 
{
	import com.xskip.display.StageLink;
	import com.xskip.test.TestDrawBox;
	import flash.display.Sprite;
	import flash.events.Event;
	import test.TestBianXing;
	import test.TestImageBomb;
	
	/**
	 * ...
	 * @author JamesXie
	 * @date 2011-02-04
	 */
	public class Main extends Sprite 
	{
		
		public function Main():void 
		{
			if (stage) init();
			else addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event = null):void 
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// entry point
			trace("start ------------");
			StageLink.STAGE = stage;
			
			var fSp:Sprite = new Sprite();
			this.addChild(fSp);
			//var testDrawBox:TestDrawBox = new TestDrawBox(fSp);
			
			//测试地表贴图
			//var testBianXing:TestBianXing;
			//testBianXing = new TestBianXing();
			
			//测试炸图片效果
			var testImageBomb:TestImageBomb;
			testImageBomb = new TestImageBomb();
		}
		
	}
	
}